﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace DomainModel.Entities
{

    public class CompanyType
    {

        [KeyAttribute]
        [HiddenInput(DisplayValue = false)]
        public int TypeId { get; set; }

        [HiddenInput(DisplayValue = false)]
        public DateTime? LastUpdate { get; set; }

        [HiddenInput(DisplayValue = false)]          
        public bool IsApproved { get; set; }

        [HiddenInput(DisplayValue = false)]          
        public string UserName { get; set; }

        [StringLength(500, ErrorMessage = "The Name value cannot exceed 500 characters. ")]
        [Required(ErrorMessage = "Name is required field.")]
        [Display(Name = "Name")]
        public string Name { get; set; }

        [StringLength(500, ErrorMessage = "يمكن أن تكون القيمة اسم لا يتجاوز 500 حرفا ")]
        [Required(ErrorMessage = "مطلوب اسم الحقل")]
        [Display(Name = "الاسم في اللغة العربية")]
        public string Name_Ar { get; set; }

        public virtual ICollection<Company> Companies { get; set; }
    }
}
